package demo2;

public class Test {


    public static int sum(int a,int b) {
        return a+b;
    }

    public static double sum(double a,double b,double c) {
        return a+b+c;
    }



    public static int max2(int a,int b) {
	    return a > b ? a:b;
    }

    public static int max3(int a,int b,int c) {
	    int max = max2(a,b);
        return max > c ? max : c;
    }

    public static void main(String[] args) {
	    System.out.println(max3(2, 5, 1));
    }

    public static void move(char pos1,char pos2){
        System.out.println(pos1+"->"+pos2+" ");
    }

    public static void hannuota(int n,char pos1,char pos2,char pos3){
        if(n==1){
            move(pos1,pos2);
            return;
        }
        hannuota(n-1,pos1,pos3,pos2);
        move(pos1,pos3);
        hannuota(n-1,pos2,pos1,pos3);
    }




    public static int max(int a,int b){
        return Math.max(a,b);
    }


    public static double max(double a,double b,double c){
        double m=Math.max(a,b);
        return Math.max(m,c);
    }
    public static void main2(String[] args) {

    }
}
